<template>
    <view class="container">
        <template>
            <view @click="goUrl('/pages_me/packet/message/list')">
                <view class="main_left">
                    <uni-badge size="small" text="2" absolute="rightTop" type="error" :offset="[-70, -70]"> </uni-badge>
                    <iconsfont customIcons="icon-yewuxiaoxi1" color="#ffffff" size="44"></iconsfont>
                </view>
                <view class="main_right">
                    <view class="font-28"> <view>业务消息</view><text>16分钟前</text> </view>
                    <text>您的订单（单号23652333662）审核通过</text>
                </view>
            </view>
            <view @click="goUrl('/pages_me/packet/message/list')">
                <view class="main_left">
                    <uni-badge size="small" text="2" absolute="rightTop" type="error" :offset="[-70, -70]"> </uni-badge>
                    <iconsfont customIcons="icon-xitonggonggao" color="#ffffff" size="44"></iconsfont>
                </view>
                <view class="main_right">
                    <view class="font-28"> <view>公司公告</view><text>16分钟前</text> </view>
                    <text>您的订单（单号23652333662）审核通过</text>
                </view>
            </view>
        </template>
    </view>
</template>

<script>
export default {
    components: {},
    data() {
        return {}
    },
    methods: {
        goUrl(url) {
            this.easyGoTo(url)
        },
    },
    computed: {},
}
</script>

<style lang="scss">
page {
    background: #f5f5f5;
}
.container {
    padding: 32rpx $app-page-padding;

    & > view {
        padding: 32rpx 20rpx 32rpx 32rpx;
        background: $color-white;
        border-radius: $border-radius-10;
        margin-bottom: 20rpx;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .main_left {
        position: relative;
        width: 88rpx;
        height: 88rpx;
        background: linear-gradient(-45deg, #59c2f6, #2d9cf8);
        border-radius: 24rpx;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 20rpx;

        .icon-left {
            font-size: 40rpx;
        }
    }

    & > view:nth-child(2) .main_left {
        background: linear-gradient(135deg, #fa9c2a, #f4be39);
    }

    & > view:nth-child(3) .main_left {
        background: linear-gradient(135deg, #7771e6, #8398ee);
    }

    & > view:nth-child(4) .main_left {
        background: linear-gradient(135deg, #edb4b4, #d40505, #f84e4c);
    }

    .main_right {
        flex: 1;

        & > text {
            color: #666666;
        }

        .font-28 {
            display: flex;
            justify-content: space-between;

            view {
                font-size: 28rpx;
                color: #000000;
            }

            text {
                color: #999;
                font-size: 20rpx;
            }
        }
    }
}
</style>
